<style>
    body{
        background-color: #f0f0f0;
    }
    #top li a{
        color: #9e9e9e;
    }
</style>
<ul class="layui-nav layui-bg" style="background-color: white;" id="top">
    <div class="layui-container">
        <li class="layui-nav-item"><a href="javascript:;"><strong>图书管理系统</strong></a></li>
        <div class="layui-layout-right">
            <li class="layui-nav-item @if(session('nowAddress') == '') layui-this @endif"><a href="/" @if(session('nowAddress') == '')style="font-weight: bold" @endif>首页</a></li>
            &nbsp; &nbsp;
            <li class="layui-nav-item @if(session('nowAddress') == 'class') layui-this @endif"><a href="/class" @if(session('nowAddress') == 'class')style="font-weight: bold" @endif>分类</a></li>
            &nbsp; &nbsp;
            <li class="layui-nav-item">
                <form class="layui-form" method="post" action="searchBook">
                    {{ csrf_field() }}
                    <div class="layui-input-inline">
                        <input type="text" name="book" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-input-inline">
                        <button type="sumit" class="layui-btn">给我搜</button>
                    </div>
                </form>
            </li>
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            <li class="layui-nav-item"><a href="/login" class="layui-btn layui-btn-primary layui-btn-radius" style="margin-top: 1px">登录</a></li>
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        </div>
    </div>
</ul>